﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LostAssignment.aspx.cs" Inherits="CRM.Web.OutboundManage.LostAssignment" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="<%= base.ResourcesPath + "Style/main.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/button.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/assignment.css" %>" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/jquery-1.6.2.min.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/My97DatePicker/WdatePicker.js"  defer="defer" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/MaskTextBox.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/Common.js"></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/button.js"></script>
    
    <script type="text/javascript">
        $(document).ready(function() {
            $(".cbAll").live("click", function() {
                if ($(this).children().eq(0).attr("checked") == "checked") {
                    $(".cbItem").children().each(function() {
                        $(this).attr("checked", "checked");
                    });
                }
                else {
                    $(".cbItem").children().each(function() {
                        $(this).attr("checked", false);
                    });
                }
            });

            $(".cbAllLost").live("click", function() {
                if ($(this).children().eq(0).attr("checked") == "checked") {
                    $(".cbItemLost").children().each(function() {
                        $(this).attr("checked", "checked");
                    });
                }
                else {
                    $(".cbItemLost").children().each(function() {
                        $(this).attr("checked", false);
                    });
                }
            });
        });
    </script>    
    
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
<table border="0" cellpadding="0" cellspacing="0" id="tTitle">
    <tr>
	<td class="left">
	    <img src="<%= base.ResourcesPath %>Images/title_left.gif" alt="" />
	</td>
	<td class="middle">

    <div class="pagetitle">
        <div><asp:Label ID="lblTitle" runat="server" >呼损电话分配</asp:Label></div>
    </div>
	
	</td>
	<td class="right">
	    <img src="<%= base.ResourcesPath %>Images/title_right.gif" alt="" />
	</td>
    </tr>
</table>
    <div id="divMain" >
    <div style="width: 100%" id="tBodyMain">
    <table  cellpadding="0" cellspacing="0" style="width: 100%; border-bottom: #6699ff 1px solid; ">
        <tr>
            <td style="width: auto; border-right: #6699ff 1px solid; vertical-align: top;">
                <table border="0" cellpadding="0" cellspacing="0" class="assign">
                    <caption>呼损电话信息</caption>                      
                    <tr >
                        <td  class="title">
                            分配部门：
                        </td>
                        <td class="content">                            
                            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                <ContentTemplate>
                                    <asp:DropDownList ID="ddlDepartment" runat="server" CssClass="ddl" 
                                AutoPostBack="True" onselectedindexchanged="ddlDepartment_SelectedIndexChanged"></asp:DropDownList>&nbsp;                                
                                </ContentTemplate>
                            </asp:UpdatePanel>    
                        </td>
                    </tr> 
                    <tr>
                        <td class="title">记录数：</td>
                        <td class="content"><asp:Label ID="lblCount" runat="server" ></asp:Label></td>
                    </tr>
                   <tr>
                        <td class="title"><div class="nowrap" >
                            省：</div>
                        </td>
                        <td class="content">                          
                            <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                                <ContentTemplate>
                                    <asp:DropDownList ID="ddlPROVINCE" runat="server" CssClass="ddl" 
                                        AutoPostBack="true" onselectedindexchanged="ddlPROVINCE_SelectedIndexChanged"  ></asp:DropDownList>                               
                                </ContentTemplate>
                                <Triggers>
                                </Triggers>
                            </asp:UpdatePanel>
                        </td></tr>
                    <tr>
                        <td class="title"><div class="nowrap" >
                            市：</div></td>
                        <td class="content">                          
                            <asp:UpdatePanel ID="UpdatePanel5" runat="server">
                                <ContentTemplate>
                                    <asp:DropDownList ID="ddlCITY" runat="server" CssClass="ddl" ></asp:DropDownList>                                
                                </ContentTemplate>
                                <Triggers>
                                </Triggers>
                            </asp:UpdatePanel>                       
                        </td>
                   </tr>
                   <tr>
                        <td class="content" colspan="2">
                            <div class="btndiv">
                                <asp:Button ID="btnSearch" runat="server" Text="查 询" CommandName="Search" CssClass="btn title_cx"
                                OnClick="btnSearch_Click" />       
                                <asp:Button runat="server" ID="btnAssign" CommandName="Assign" Text="分 配" OnClick="btnAssign_Click"
                                    CssClass="btn"></asp:Button>
                                <input id="btnCancel" runat="server" type="button" value="返 回" class="btn title_fh" />
                            </div>
                        </td>
                   </tr>   
                   
                    <tr>
                        <td class="content" colspan="2" style="">                            
                            <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                                <ContentTemplate>
                                    <dp:WebGridView ID="gvListLost" runat="server" CssClass="gridview" AutoGenerateColumns="False"  
                                        SortExpressionValue="RECORDTIME" SortDirectionValue="ASC"     >
                                        <Columns> 
                                            <asp:TemplateField>
			                                    <HeaderTemplate>			                
                                                    <asp:CheckBox ID="cbAll" CssClass="cbAllLost" runat="server"  />
			                                    </HeaderTemplate>
                                                <ItemTemplate>
                                                    <asp:CheckBox ID="cbItem" CssClass="cbItemLost" runat="server" />
                                                </ItemTemplate>
                                                <ItemStyle Width="28px" HorizontalAlign="Center" />
                                                <HeaderStyle Width="28px" HorizontalAlign="Left"  />
                                            </asp:TemplateField>
			                                <asp:BoundField DataField="ANI" HeaderText="主叫号码"   >
			                                <HeaderStyle Width="100px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="DNIS" HeaderText="被叫号码"  >
			                                <HeaderStyle Width="100px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="RECORDTIME" HeaderText="记录时间"  >
			                                <HeaderStyle Width="100px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="PROVINCE" HeaderText="省"  >
			                                <HeaderStyle Width="100px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="CITY" HeaderText="市"  >
			                                <HeaderStyle Width="100px" />
                                            </asp:BoundField>
			                                <asp:TemplateField HeaderText="">
                                                <ItemTemplate>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>	
                                        <RowStyle CssClass="row" />
                                        <AlternatingRowStyle CssClass="row2" />
                                        <HeaderStyle CssClass="header" />	
                                        <PagerStyle CssClass="pager" />	
                                    </dp:WebGridView>                                
                                </ContentTemplate>
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="ddlDepartment" 
                                        EventName="SelectedIndexChanged" />
                                </Triggers>
                            </asp:UpdatePanel>    
                        </td>                        
                    </tr> 
                    <tr style="height: 100%; line-height: 100%;">
                        <td  class="title" >
                        </td>
                        <td class="content">
                        </td>
                    </tr>         
                </table>
            </td>
            <td style="width: 300px; border-right: #336699 1px solid;  vertical-align: top; ">
                <table border="0" cellpadding="0" cellspacing="0" class="assign">
                    <caption>目标操作员信息</caption><tr>
                        <td class="content" >
                            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                <ContentTemplate>
                                    <dp:WebGridView ID="gvList" runat="server" CssClass="gridview" AutoGenerateColumns="False"  
                                        SortExpressionValue="LOGINNAME">
                                        <Columns> 
                                            <asp:TemplateField>
			                                    <HeaderTemplate>			                
                                                    <asp:CheckBox ID="cbAll" CssClass="cbAll" runat="server"  />
			                                    </HeaderTemplate>
                                                <ItemTemplate>
                                                    <asp:CheckBox ID="cbItem" CssClass="cbItem" runat="server" />
                                                </ItemTemplate>
                                                <ItemStyle Width="28px" HorizontalAlign="Center" />
                                                <HeaderStyle Width="28px" HorizontalAlign="Left"  />
                                            </asp:TemplateField>
			                                <asp:BoundField DataField="LOGINNAME" HeaderText="登录名"  >
			                                <HeaderStyle Width="100px" />
                                            </asp:BoundField>
			                                <asp:BoundField DataField="USERNAME" HeaderText="姓名"  >
			                                <HeaderStyle Width="100px" />
                                            </asp:BoundField>
			                                <asp:TemplateField HeaderText="">
                                                <ItemTemplate>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>	
                                        <RowStyle CssClass="row" />
                                        <AlternatingRowStyle CssClass="row2" />
                                        <HeaderStyle CssClass="header" />	
                                        <PagerStyle CssClass="pager" />	
                                    </dp:WebGridView>                                
                                </ContentTemplate>
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="ddlDepartment" 
                                        EventName="SelectedIndexChanged" />
                                </Triggers>
                            </asp:UpdatePanel>    
                        </td>                        
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </div>
    </div>
    </form>
</body>
</html>
